package com.ltu.config.mqtt;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Data;

@ConfigurationProperties(prefix = "mqtt")
public class MqttProperties {

    public static final  String PREFIX="mqtt";
//    @Value("${mqtt.host}")
    private String host;
//    @Value("${mqtt.clientid}")
    private String clientid;
//    @Value("${mqtt.username}")
    private String username;
//    @Value("${mqtt.password}")
    private String password;
//    @Value("${mqtt.topic}")
    private String topic;
//    @Value("${mqtt.timeout}")
    private int timeout;
//    @Value("${mqtt.keepalive}")
    private int keepalive;
   
    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getClientid() {
        return clientid;
    }

    public void setClientid(String clientid) {
        this.clientid = clientid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    public int getKeepalive() {
        return keepalive;
    }

    public void setKeepalive(int keepalive) {
        this.keepalive = keepalive;
    }
}